import request from './utils/request'
export default {
  getfile(id){
    return request({
      url:`/eduservice/question_file/userdownload/${id}`,
      method:'get',
      responseType: 'blob',
    })
  },
  downPdf(teaId,folderId,fileName){
    return request({
      url:`/eduservice/edu_create_pdf/${teaId}/${folderId}/${fileName}`,
      method:'post',
      responseType: 'blob',
    })
  },
//   downCourseWord(detailquestioninfoList,QuestionTypeList,paperInfo,choice){
//     return request({
//       url:`/eduservice/wordMange/create`,
//       method:'post',
//       data:{
//         paperInfo,
//         detailquestioninfoList,
//         QuestionTypeList,
//         choice,
//       },
//       responseType: 'blob',
//     })
  
// },
downCoursePaperWord(paperInfo){
  return request({
    url:`/eduservice/wordMange/createPaperWord`,
    method:'post',
    data:{
      paperInfo,
    },
    responseType: 'blob',
  })
},
  getPageClassFileList(page, limit,searchObj) {
    return request({
      url: `/${page}/${limit}`,
      method: 'get',
      data:searchObj
    })
  },
}
